package com.example.process.node;

/**
 * @description:  节点基类，定基调
 * @author ts2333
 * @date: 2022/6/15 16:34
 */
public interface NodeProcessor <T> {
    /***
     * @description: 获取节点code
     * @return:Integer
     */
    Integer getNodeCode();

    /***
     * @description:  审核通过
     * @param: context
     * @return: boolean
     */
    boolean pass(NodeContext<T> context);

    /***
     * @description:  审核驳回
     * @param: context
     * @return: boolean
     */
    boolean reject(NodeContext<T> context);

}
